package com.bw.video

import android.os.Bundle
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import com.alibaba.android.arouter.launcher.ARouter
import com.bw.base.app.RoutePath
import com.bw.common.base.BaseActivity
import com.bw.common.view.CircleCountDownView
import com.bw.video.databinding.ActivitySplashBinding
import dagger.hilt.android.AndroidEntryPoint

@AndroidEntryPoint
class SplashActivity : BaseActivity<ActivitySplashBinding>() {
    override fun getLayoutId(): Int {
        return R.layout.activity_splash
    }

    override fun initViews() {
        mDataBinding.cdView.apply {
            setCountDownLister(object : CircleCountDownView.CountDownLister{
                override fun countDownFinished() {
                    ARouter.getInstance().build(RoutePath.PATH_MAIN_PAGE).navigation()
                    finish()
                }
            })
            startCountDown()
        }
    }

}